﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCLopHoc.ascx.cs" Inherits="Web.giamthi.UCLopHoc" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        width: 400px;
    }
</style>
<table class="style1">
    <tr>
        <td valign="top">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%"
                OnRowDeleting="GridView1_RowDeleting" OnSelectedIndexChanging="GridView1_SelectedIndexChanging"
                DataKeyNames="malop" BackColor="White" BorderColor="#336666" BorderStyle="Double"
                BorderWidth="3px" CellPadding="4" GridLines="Horizontal" 
                onpageindexchanging="GridView1_PageIndexChanging" 
                onrowdatabound="GridView1_RowDataBound">
                <Columns>
                    <asp:BoundField DataField="malop" HeaderText="Mã Lớp" />
                    <asp:BoundField DataField="tenlop" HeaderText="Tên Lớp" />
                    <asp:TemplateField HeaderText="Tên Giáo Viên">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("GiaoVien.TenGV") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="MaGV" HeaderText="Mã Giáo Viên" />
                    <asp:BoundField DataField="mota" HeaderText="Mô Tả" />
                    <asp:BoundField DataField="trangthai" HeaderText="Trạng Thái" />
                    <asp:CommandField ShowSelectButton="True" SelectText="Sửa" />
                    <asp:CommandField ShowDeleteButton="True" DeleteText="Xóa" />
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#333333" />
                <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
                <SortedAscendingCellStyle BackColor="#F7F7F7" />
                <SortedAscendingHeaderStyle BackColor="#487575" />
                <SortedDescendingCellStyle BackColor="#E5E5E5" />
                <SortedDescendingHeaderStyle BackColor="#275353" />
            </asp:GridView>
        </td>
        <td width="50">
            &nbsp;
        </td>
        <td valign="top">
            <table class="style2">
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblError" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="labelId" runat="server"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblId" runat="server" Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên lớp (*)
                    </td>
                    <td>
                        <asp:TextBox ID="txtTenLop" runat="server" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Giáo viên
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlGiaoVien" runat="server" Width="200px">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        Mô tả
                    </td>
                    <td>
                        <asp:TextBox ID="txtMoTa" runat="server" Height="100px" TextMode="MultiLine" Width="200px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnLuu" runat="server" Text="Lưu" OnClick="btnLuu_Click" />
                        &nbsp;<asp:Button ID="btnHuy" runat="server" Text="Hủy" OnClick="btnHuy_Click" Style="height: 26px" />
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
